{extend name="layout/create" /}
{block name="form"}

<form id="form">
	<div class="form-group">
		<label class="control-label">{$tables['fields']['classs_id']['name']}</label>
		<select class="form-control" placeholder="" name="classs_id">
			<option value="0">--顶级--</option>
			{foreach $classs as $key=>$vo } 
			<option value="{$vo.id}">{:echolevel($vo.level)}  {$vo.name}</option>
			{/foreach}
		</select>
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["name"]["name"]}</label>
		<input class="form-control" type="text" placeholder="" name="name" value="">
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["url"]["name"]}</label>
		<input class="form-control" type="text" placeholder="" name="url" value="">
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["target"]["name"]}</label>
		<select class="form-control" placeholder="" name="target">
			{foreach $tables["fields"]["target"]["options"] as $key=>$vo } 
			<option value="{$key}">{$vo}</option>
			{/foreach}
		</select>
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["ico"]["name"]}</label>
		<input class="form-control" type="text" placeholder="" name="ico" id="ico" value="" style="margin-bottom:10px;">
		<div class="form-group">
			<input id="icofile" type="file" multiple=true>
		</div>
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["status"]["name"]}</label>
		<select class="form-control" placeholder="" name="status">
			{foreach $tables["fields"]["status"]["options"] as $key=>$vo } 
			<option value="{$key}">{$vo}</option>
			{/foreach}
		</select>
	</div>

	<div class="form-group">
		<label class="control-label">{$tables["fields"]["navigation"]["name"]}</label>
		<select class="form-control" placeholder="" name="navigation">
			{foreach $tables["fields"]["navigation"]["options"] as $key=>$vo } 
			<option value="{$key}">{$vo}</option>
			{/foreach}
		</select>
	</div>
	<div class="form-group">
		<label class="control-label">{$tables["fields"]["create_time"]["name"]}</label>
		<div class="input-group date" id="create_time" data-target-input="nearest">
			<input type="text" name="create_time" class="form-control datetimepicker-input" data-target="#create_time"/>
			<div class="input-group-append" data-target="#create_time" data-toggle="datetimepicker">
				<div class="input-group-text"><i class="fa fa-calendar"></i></div>
			</div>
		</div>
	</div>

	<div class="tile-footer">
		<button class="btn btn-primary" type="button" id="submitbutton">
			<i class="fa fa-fw fa-lg fa-check-circle"></i>提交
		</button>   
	</div>
</form>


{/block}

{block name="javascript"}
<script>upload("icofile","ico");</script>
<script>
$(function () {
	$("#create_time").datetimepicker({
		locale: moment.locale("zh-cn"),
	});
});
</script>
{/block}

